package com.bobo.model;

import com.bobo.annotations.Column;
import com.bobo.annotations.Id;
import com.bobo.annotations.Table;
import com.bobo.annotations.Transient;

/**
 * Created by bobo on 16-11-8.
 */
@Table("t_person")
public class Person {

    @Id
    private Integer id;
    @Column(value = "name")
    private String name;
    @Transient
    @Column(value = "tag_id")
    private Tag tag;

    public Person() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Tag getTag() {
        return tag;
    }

    public void setTag(Tag tag) {
        this.tag = tag;
    }
}
